import 'package:flutter/cupertino.dart';
import 'package:flutter_widget/model/mvvm.dart';

class MvvmProvider extends ChangeNotifier {
  final FindCategory _model = FindCategory();
  List _list = [];
  get list => _list;
  void getList() async {
    var result = await _model.getList();
    _list = result['data'];
    // ignore: avoid_print
    print(_list);
    notifyListeners(); // 刷新ui
  }
}
